package Test;

import java.io.File;
import java.util.Date;

public class test1 {
    public static void main(String[] args) {
        File f1 = new File("D:\\图片视频音乐\\Documents\\OneDrive\\桌面","java笔记");
        boolean s1 = f1.isDirectory();
        System.out.println(s1);
        s1 = f1.isFile();
        System.out.println(s1);
        s1 = f1.exists();
        System.out.println(s1);

        long s = f1.length();
        System.out.println(s);

        long time = f1.lastModified();

        Date d = new Date();

        d.setTime(s);

        System.out.println(d);

    }
}
